<?php
header("Content-type: text/html; charset=utf8"); 
include_once 'Snoopy.class.php';
$snoopy = new Snoopy();

$URI = "http://www.ijquery.cn/wp-login.php";
$formvars["log"] = "xxxx";
$formvars["pwd"] = "xxxxxx"; 
//伪装
$snoopy->cookies["PHPSESSID"] = 'fc106b1918bd522cc863f36890e6fff7'; //伪装sessionid
$snoopy->agent = "(compatible; MSIE 4.01; MSN 2.5; AOL 4.0; Windows 98)"; //伪装浏览器
$snoopy->referer = "http://bbs.bfnz.cn"; //伪装来源页地址 http_referer
$snoopy->rawheaders["Pragma"] = "no-cache"; //cache 的http头信息
$snoopy->rawheaders["X_FORWARDED_FOR"] = "127.0.0.101"; //伪装ip
$snoopy->submit($URI,$formvars);

echo $snoopy->results; 